package com.solarfridge.monitor.server;

import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManagerFactory;

/**
 * Simple factory class providing singleton access to a <code>PersistenceManagerFactory</code>
 * by the name <code> "transactions-optional" </code>
 */
public final class PMFactory {
	private static final PersistenceManagerFactory pmfInstance =
        JDOHelper.getPersistenceManagerFactory("transactions-optional");

    private PMFactory() {
		
	}

    public static PersistenceManagerFactory get() {
        return pmfInstance;
    }
}
